1、HD camera calibration

Wiki:http://wiki.ros.org/camera_calibration

HD camera:https://github.com/bosch-ros-pkg/usb_cam.git

HD camera tutorials:http://wiki.ros.org/camera_calibration/Tutorials/MonocularCalibration

 

1.1、Preparation before calibration

Checkerboard (calibration board)

image-20210907171706358

1.2、Calibration

Start up Astra camera

View picture topic

image-20210907180729802

Start the calibration node

size: The number of internal corners of the calibrated checkerboard, such as 9X6, the corners have six rows and nine columns.

square: The side length of the checkerboard, in meters.

image and camera: Set the topic of the image released by the camera.

image-20210907180204879

Calibration interface

X: The left and right movement of the checkerboard in the camera field of view

Y: The checkerboard moves up and down in the camera's field of view

Size: the back and forth movement of the checkerboard in the camera's field of view

Skew: The tilt and rotation of the checkerboard in the camera field of view

After the startup is successful, put the checkerboard into the center of the screen and change different poses. The system will recognize it autonomously. In the best case, the lines under [X], [Y], [Size], and [Skew] will first change from red to yellow and then to green as the data is collected, filling them as much as possible.

image-20210907183329713

Click [CALIBRATE] to calculate the camera internal parameters, the more pictures, the longer the time, just wait.

image-20210907184245152

Click [SAVE] to save the uncalibrated result, the bottom line appears, click [COMMIT] to exit.。

image-20210907184525814

After the calibration, the calibration result is stored in [/tmp/calibrationdata.tar.gz], you can move it out to see the content

After decompression, there are the image just calibrated, an ost.txt file and an ost.yaml file. The yaml file is what we need, but it needs to be modified before it can be used.

-Change ost.yaml to head_camera.yaml -Change the name of camera_name: to head_camera -Move the file to ~/.ros/camera_info folder